package com.desire.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-12 周二 14:29
 * @since 17
 */
@Mapper
public interface DbMapper {
    @Select("show databases")
    Set<String> dbs();

    @Select("show tables")
    List<String> tbs();

    @Select("show tables in ${dbname}")
    List<String> tbsfrom();

}
